<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:p="http://primefaces.org/ui">
    <h:head>
        <title>Garden</title>
    </h:head>
    <h:body>
        Logged user: #{userBean.name}<br/>
        <p:panel header="This is your homepage" style="display:block; text-align:center">
            <!-- <center><p:button outcome="homepage" value="HOME" style="width:200px;height:50px"/></center><br/> -->

            <center><p:button outcome="event/newEvent" value ="CREATE EVENT" style="width:200px;height:100px"/></center><br/>
            
            <center><p:commandButton value="SCHEDULE" action="#{counter.countForSchedule()}"
                                     style="width:200px;height:70px"/></center>
                                     
            <center><p:commandButton value="SCHEDULE 2" action="#{counter.countForSchedule2()}"
                                     style="width:200px;height:70px"/></center>                        
            
            <center><p:button outcome="event/eventData" value="SHOW EVENTS" style="width:310px;height:50px"/></center><br/>
            <center><p:button outcome="invite/showInvites" 
                              value="INVITES: #{counter.invitesnumber}" 
                              style="width:310px;height:50px"/></center><br/>
            <center><p:button outcome="update/showUpdates" 
                              value="UPDATES: #{counter.updatesnumber}" 
                              style="width:310px;height:50px"/></center><br/>
            <center><p:button outcome="delete/showDeletes" 
                              value="DELETES: #{counter.deletesnumber}" 
                              style="width:310px;height:50px"/></center><br/>
            <center><p:button outcome="tomorrowRainy/showTomorrowRainy" 
                              value="TOMORROW RAINY: #{counter.tmrnumber}"
                              style="width:410px;height:50px"/></center><br/>
            <center><p:button outcome="badWeather/showBadWeather" 
                              value="BAD WEATHER: #{counter.badweathernumber}"
                              style="width:410px;height:50px"/></center><br/>
            <center><p:commandButton value="Check Tomorrow Rainy"
                                     action="#{weatherBean.checkTomorrowRainy()}" /></center><br/>
            <center><p:commandButton value="Check Bad Weather"
                                     action="#{weatherBean.checkBadWeather()}" /></center><br/>
                                     
                                   

            <center><p:button outcome="/user/startpage" value="Back to Start" style="width:400px;height:50px"/></center><br/>

            <h:form>
                <center><h:commandLink action="#{loginBean.logout()}" value="Logout"/></center><br/>
            </h:form>
        </p:panel>
    </h:body>
</html>
